import * as styles from "./index.less";
import IMAGE from "./Snipaste.png";
import { fetchPost } from "@/api/test";

export function Test1() {
  const clickLogin = async () => {
    const res = await fetchPost({
      username: "lipan",
      pwd: "1234qwer",
    });
    console.log("登录返回", res);
  };

  return (
    <>
      {/* <span class="icon iconfont">&#xe6c9;</span> */}
      <button
        onClick={() => {
          clickLogin();
        }}
      >
        去登录
      </button>
      <br />
      <img src={IMAGE} alt="" width={200} />
      <div className={styles.title}>全局样式</div>
    </>
  );
}

export default Test1;
